<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var InterceptedEditUrl="{:U('Intercepted/InterceptedSave')}";//更新数据
	var getInterceptedUrl="{:U('Intercepted/get_Intercepted')}";
	var InterceptedDelUrl="{:U('Intercepted/InterceptedDel')}";
	var InterceptedExamineUrl="{:U('Intercepted/examineIntercepted')}";
	var InterceptedClearUrl="{:U('Intercepted/InterceptedClear')}";
	var InterceptedUndoUrl="{:U('Intercepted/InterceptedUndo')}";

	var erpId="{:I('id')}";//erp企业对应id
	<!-- using('../../../default/js/intercepted.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/intercepted.js"></script>

	<table id="InterceptedDatagrid" toolbar="#Intercepted_tb"></table>
	<!-- 添加 -->
	<div id="InterceptedAddDialog" class="easyui-dialog" title="拦截添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#InterceptedAddButtons"  modal="true">
         <form id="InterceptedAddForm" method="post" novalidate>
			<div class="fitem">
                <label>拦截值</label>
                <input name="val" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>

			<div class="fitem">
                <label>拦截属性</label>
                <select class="easyui-combobox" name="key" id="Intercepted_key" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[1,30]','selected[]']">
                    <volist name="keylist" id="vo">
                        <option value="{$vo['code']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
         </form>
    </div>
    <div id="InterceptedAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="InterceptedObj.add('{:U('Intercepted/interceptedAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#InterceptedAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="InterceptedEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#InterceptedEditButtons"  modal="true">
        <form id="InterceptedEditForm" method="post" novalidate>    
				<div class="fitem">
					<label>拦截值</label>
					<input name="id"  type="hidden" />
					<input name="val" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
				</div>

				<div class="fitem">
					<label>拦截属性</label>
					<select class="easyui-combobox" name="key" id="Intercepted_key" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[1,30]','selected[]']">
						<volist name="keylist" id="vo">
							<option value="{$vo['code']}">{$vo['name']}</option>
						</volist>
					</select>   
				</div>    
        </form>
    </div>
    <div id="InterceptedEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="InterceptedObj.save('{:U('Intercepted/InterceptedSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#InterceptedEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="Intercepted_tb">
        <form id="InterceptedSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="InterceptedObj.showAll()">全部</a>     
			 拦截值:<input class="easyui-textbox" name="val" style="width:150px;height:30px;"> 
			 拦截属性:<select class="easyui-combobox" name="key"  style="width:70px;height:30px;">
				<volist name="keylist" id="vo">
					<option value="{$vo['code']}">{$vo['name']}</option>
				</volist>	                      
             </select>

			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="InterceptedObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="InterceptedObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="InterceptedObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="InterceptedObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="InterceptedObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="InterceptedObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="InterceptedObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#intercepted_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="intercepted_mm1" style="width:150px;">
			<div onclick="InterceptedObj.recycle()">查看</div>
			<div onclick="InterceptedObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="InterceptedObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
</body>